<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<load href="__PUBLIC/Js/jquery.js" />
<load href="__PUBLIC/Js/Base.js" />
<load href="__PUBLIC/Js/prototype.js" />
<load href="__PUBLIC/Js/mootools.js" />
<load href="__PUBLIC/Js/Ajax/ThinkAjax.js" />
 </head>
 <body><script language="JavaScript">
 <!--

	function add(){  
		ThinkAjax.sendForm('form1','__URL__/insert',complete,'result');
	}

	function complete(data,status){
		if (status==1)
		{
		// 更新列表
		$('list').innerHTML +=
		'<div class="result" style=\'font-weight:normal;background:#A6FF4D\'><div style="border-bottom:1px dotted silver">'+data.title+'  ['+data.email+data.create_time+']</div><div class="content">'+data.content+'</div></div>';
		}
	}
	 
 //-->
 </script>
</head>

<body>
<div id="result" class="none result" style="font-family:微软雅黑,Tahoma;letter-spacing:2px"></div>
<form action="" method="post" name="form1" id="form1">
账号：<input name="name" type="text" /><br/>
密码：<input name="content" type="text" /><br/>
<input name="button" onclick="add()" type="button" value="ok" />
</form>
</body>
</html>
